package io.renren.common.service;

import io.renren.common.dto.ShoppingCartDTO;
import io.renren.common.entity.OrderDetailEntity;
import io.renren.common.entity.ShoppingCartEntity;
import io.renren.common.service.CrudService;

import java.util.List;


/**
 * 购物车
 *
 * @author yidian ${email}
 * @since 1.0.0 2022-11-06
 */
public interface ShoppingCartService extends CrudService<ShoppingCartEntity, ShoppingCartDTO> {

    ShoppingCartEntity add2shoppingCart(ShoppingCartDTO shoppingCartDTO);

    ShoppingCartEntity subFromShoppingCart(ShoppingCartDTO shoppingCartDTO);

    void cleanShoppingCart();

    List<ShoppingCartEntity> ShoppingCartList();

    void saveByOrderDetail(List<OrderDetailEntity> orderDetailList);
}